Skip to content

Handle all annotation source request failures - #2695

Merged
KaanOzkan merged 1 commit into
mainfrom
ko-handle-bad-annotation-sources
Aug 4, 2026
Merged

Handle all annotation source request failures#2695
KaanOzkan merged 1 commit into
mainfrom
ko-handle-bad-annotation-sources

Conversation

@KaanOzkan

Copy link
Copy Markdown
Contributor

Motivation

Ran into this issue in this CI run: https://github.com/Shopify/tapioca/actions/runs/30581510365/job/91002633500?pr=2669#step:6:151

Implementation

Treat any error while fetching an HTTP annotation source as an unavailable source. I briefly looked into exception classes that can be raised and there were too many, I think the risk of calling say_http_error with a non network related exception in this function is low so I went with this approach instead of adding more exception classes.

Tests

Treat any error while fetching an HTTP annotation source as an unavailable source. This lets annotations continue with other configured sources when network failures such as connection resets occur.
@KaanOzkan
KaanOzkan requested a review from a team as a code owner August 4, 2026 14:41

@paracycle paracycle left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approach seems reasonable to me

@KaanOzkan
KaanOzkan merged commit 4e37e67 into main Aug 4, 2026
17 of 18 checks passed
@KaanOzkan
KaanOzkan deleted the ko-handle-bad-annotation-sources branch August 4, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants